<?php


namespace frontend\models\cyf;


use yii\db\ActiveRecord;

class Discussion extends ActiveRecord
{

    public static function tableName()
    {

        return '2008a_discussion';
    }
    /**
     * 商品评论
     * @param $goods_id
     * @return array|ActiveRecord[]
     * @cyf
     */
    public static function goodsDisCussion($goods_id)
    {
        return self::find()->select('*')
            ->where(['goods_id'=>$goods_id])
            ->asArray()->all();
    }
}